import menu = cc._decorator.menu;

const {ccclass, property} = cc._decorator;

@ccclass
@menu("Canvas适配")
export default class TargetToCanvas extends cc.Component {
    onLoad(){
        let widget = this.getComponent(cc.Widget);
        widget.target = cc.find('Canvas');
    }
}
